/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gruposp2p.aula.gwt.client.model;

import java.io.Serializable;
//import java.math.BigDecimal;
import java.util.Collection;


/**
 *
 * @author jj
 */
public class Itemcalificabletype implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;
    private String description;
    private Collection<Itemcalificable> itemcalificableCollection;
    //private BigDecimal percent;
    
    public Itemcalificabletype() {
    }

    public Itemcalificabletype(Integer id) {
        this.id = id;
    }

    public Itemcalificabletype(Integer id, String name, String description) {
        this.id = id;
        this.name = name;
        this.description = description;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /*
    public BigDecimal getPercent() {
        return percent;
    }

    public void setPercent(BigDecimal percent) {
        this.percent = percent;
    }*/

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Collection<Itemcalificable> getItemcalificableCollection() {
        return itemcalificableCollection;
    }

    public void setItemcalificableCollection(Collection<Itemcalificable> itemcalificableCollection) {
        this.itemcalificableCollection = itemcalificableCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Itemcalificabletype)) {
            return false;
        }
        Itemcalificabletype other = (Itemcalificabletype) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.aula.databasemodel.entity.Itemcalificabletype[id=" + id + "]";
    }

}
